/**
 * @author furthurr
 */
var win = Titanium.UI.currentWindow;
	win.title='Datos Generales';
	win.backgroundColor= 'white';
var header = Titanium.UI.createView({
	backgroundImage:'../../imgs/header.png',
	top:0,	
	height:60,
	width:320
	});
var footer = Titanium.UI.createView({
	backgroundImage:'../../imgs/footer.png',
	bottom:0,	
	height:60,
	width:320
	});
var view = Titanium.UI.createWebView({
	url:'../../html/licenciaturas/odontologia/gral.html',	
	height:290,
	width:320
	});
//win.add(menus);
win.add(footer);
win.add(header);
win.add(view);
var boton1=Titanium.UI.createButtonBar({
	labels:['Datos Generales'],
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	top:0,
	left:0,
    backgroundColor:'##C0C0C0', 
	height:25,
	width:120,
	});
	var boton2=Titanium.UI.createButtonBar({
	labels:['Perfil Ingreso'],
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	top:0,
	left:200,
    backgroundColor:'##C0C0C0', 
	height:25,
	width:120,
	});
var boton3=Titanium.UI.createButtonBar({
	labels:['Perfil de Egreso'],
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	top:35,
	left:0,
    backgroundColor:'##C0C0C0', 
	height:25,
	width:120,
});
	var boton4=Titanium.UI.createButtonBar({
	labels:['Plan de Estudios'],
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	top:35,
	left:200,
    backgroundColor:'##C0C0C0', 
	height:25,
	width:120,
	});
win.add(boton1);
win.add(boton2);
win.add(boton3);
win.add(boton4);
//EVENTOS
boton1.addEventListener('click',function (e){
	win.title='Datos Generales';
		//cambiar
	view.url='../../html/licenciaturas/odontologia/gral.html';	
});
boton2.addEventListener('click',function (e){
	win.title='Perfil de Ingreso';
	view.url='../../html/licenciaturas/odontologia/ingreso.html';
});
boton3.addEventListener('click',function (e){
		win.title='Perfil de Egreso';
		view.url='../../html/licenciaturas/odontologia/egreso.html';

});
boton4.addEventListener('click',function (e){
		win.title='Plan de Estudios';
		view.url='../../html/licenciaturas/odontologia/plan.html';

});